/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-13 09:37:09
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-13 10:03:22
 */
//父类
public class B extends C{
    private double money;
    public String house;
    //get set
    //money
    public double getMoney(){
        return money;
    }
    public void setMoney(double Money){
        this.money = money;
    }
    //house
    public String getHouse(){
        return house;
    }
    public void setHouse(String House){
        this.house = house;
    }
    public void fishing(){
        System.out.println("爸爸喜欢钓鱼");

    }
    public void sayHello(){
        System.out.println("父亲的房子是："+house+"父亲有："+money+"w");
    }
    

}
